<?php 
/* SVN FILE: $Id$ */
/* ShopInfo Test cases generated on: 2010-01-27 14:46:58 : 1264603618*/
App::import('Model', 'ShopInfo');

class ShopInfoTestCase extends CakeTestCase {
	var $ShopInfo = null;
	var $fixtures = array('app.shop_info');

	function startTest() {
		$this->ShopInfo =& ClassRegistry::init('ShopInfo');
	}

	function testShopInfoInstance() {
		$this->assertTrue(is_a($this->ShopInfo, 'ShopInfo'));
	}

	function testShopInfoFind() {
		$this->ShopInfo->recursive = -1;
		$results = $this->ShopInfo->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('ShopInfo' => array(
			'id'  => 1,
			'shopname'  => 'Lorem ipsum dolor sit amet',
			'discribe'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'isopen'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>